package quickSort;

public class BothSortersStarted<T extends Comparable<? super T>> extends QuickSorterState<T>{


	private final QuickSorter<T> lessThanSorter;
	private final QuickSorter<T> greaterEqualsSorter;

	public BothSortersStarted(final QuickSorter<T> lessThanSorter,
			final QuickSorter<T> greaterEqualsSorter) {
		this.lessThanSorter = lessThanSorter;
		this.greaterEqualsSorter = greaterEqualsSorter;
	}

	@Override
	public void accept(final QuickSortStateVisitor<T> quickSortStateVisitor) {
		quickSortStateVisitor.visit(this);
	}

	public QuickSorter<T> getLessThanSorter() {
		return lessThanSorter;
	}

	public QuickSorter<T> getGreaterEqualsSorter() {
		return greaterEqualsSorter;
	}

}
